package com.glsc.ngateway.common.base.domain.mysql.opmanagemain.archive;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author liwei
 * 文件中心，档案信息表
 */
@Data
@Entity
@Table(name = "t_archive_document")
@org.hibernate.annotations.Table(appliesTo = "t_archive_document", comment = "档案信息表")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ArchiveDocument implements Serializable {
    private static final long serialVersionUID = -2910755368157489071L;

    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "doc_id", columnDefinition = "int(20) comment '档案id'")
    private Integer docId;

//    @Column(name = "doc_id", columnDefinition = "int(20) comment '档案id'")
//    private Integer docId;

    @Column(name = "file_id", columnDefinition = "int(20) comment '文件id'")
    private Integer fileId;

}
